import request from '@/utils/request'

//统一字典下拉框查询
export function adminDict(params) {
    return request({
        url: `common/v1/adminDict`,
        params
    })
}

//查询神椰积分通兑信息列表
export function exchangeList(params) {   
    return request({
        url: `/shenye/points/exchange`,
        method: 'get',
        params
    })
}

//修改积分通兑设置
export function editExchange(data) {
    return request({
      url: '/shenye/points/exchange',
      method: 'put',
      data
    })
}
//获取详情
export function pointsExchangeConfigDetail(params) {
    return request({
        url: `/shenye/points/exchange/pointsExchangeConfigDetail`,
        method: 'get',
        params
    })
}


//查询账户绑定关系信息列表
export function bindList(params) {   
    return request({
        url: `/shenye/points/exchange/bindList`,
        method: 'get',
        params
    })
}
